#ifndef ExampleAPI_H
#define ExampleAPI_H

#include <QtCore>
#include "hybridplugininterface.h"

class Example;
class QWebFrame;

class ExampleAPI : public QObject,
                   public HybridPluginInterface {
    Q_OBJECT
    Q_INTERFACES(HybridPluginInterface)

public:
    ExampleAPI();

    void setEnvironment(QMainWindow *parentWindow, QWebFrame *webFrame);

    QString jsObjectName();
    QObject *jsObjectInstance();
    QString jsFileName();

private:
    Example *m_example;

};

#endif // ExampleAPI_H

